home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / Scrap.p < prev    next >
Encoding:
Text File  |  1997-08-12  |  2.2 KB  |  94 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Scrap.p
  3.  
  4.      Contains:    Scrap Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1985-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT Scrap;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __SCRAP__}
  28. {$SETC __SCRAP__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ScrapIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37.  
  38.  
  39. {$PUSH}
  40. {$ALIGN MAC68K}
  41. {$LibExport+}
  42.  
  43. {
  44.   _________________________________________________________________________________________________________
  45.    • CLASSIC SCRAP MANAGER API
  46.   _________________________________________________________________________________________________________
  47. }
  48.  
  49. TYPE
  50.     ScrapStuffPtr = ^ScrapStuff;
  51.     ScrapStuff = RECORD
  52.         scrapSize:                SInt32;
  53.         scrapHandle:            Handle;
  54.         scrapCount:                SInt16;
  55.         scrapState:                SInt16;
  56.         scrapName:                StringPtr;
  57.     END;
  58.  
  59.     PScrapStuff                            = ^ScrapStuff;
  60. FUNCTION InfoScrap: ScrapStuffPtr;
  61.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  62.     INLINE $A9F9;
  63.     {$ENDC}
  64. FUNCTION UnloadScrap: SInt32;
  65.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  66.     INLINE $A9FA;
  67.     {$ENDC}
  68. FUNCTION LoadScrap: SInt32;
  69.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  70.     INLINE $A9FB;
  71.     {$ENDC}
  72. FUNCTION GetScrap(hDest: Handle; theType: ResType; VAR offset: SInt32): SInt32;
  73.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  74.     INLINE $A9FD;
  75.     {$ENDC}
  76. FUNCTION ZeroScrap: SInt32;
  77.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  78.     INLINE $A9FC;
  79.     {$ENDC}
  80. FUNCTION PutScrap(length: SInt32; theType: ResType; source: UNIV Ptr): SInt32;
  81.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  82.     INLINE $A9FE;
  83.     {$ENDC}
  84. {$ALIGN RESET}
  85. {$POP}
  86.  
  87. {$SETC UsingIncludes := ScrapIncludes}
  88.  
  89. {$ENDC} {__SCRAP__}
  90.  
  91. {$IFC NOT UsingIncludes}
  92.  END.
  93. {$ENDC}
  94.